using Newtonsoft.Json.Linq;
using SysFrame.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaskApp.BP;

namespace TaskAPP.Message
{
    /// <summary>
    /// taskapp_c1
    /// </summary>
    public class Mstaskapp_c1 : Mstaskapp_main
    {
        private int _TASKAPP_C1_AUTOID;//单据ID
        private int? _TASKAPP_C1_10;//调出存放地ID
        private int? _TASKAPP_C1_20;//调入存放地ID
        private string _TASKAPP_C1_30;//备注
        private string _TASKAPP_C1_40;//备用1
        private string _TASKAPP_C1_50;//备用2
        private string _TASKAPP_C1_60;//
        private string _TASKAPP_C1_70;//
        private string _TASKAPP_C1_80;//
        private string _TASKAPP_C1_90;//
        private string _TASKAPP_C1_100;//
        private string _strTASKAPP_C1_10;//调出存放地
        private string _strTASKAPP_C1_20;//调入存放地
        private List<Mstaskapp_c1list> _list;//调拨明细


        /// <summary>
        /// 调拨明细
        /// </summary>	
        public List<Mstaskapp_c1list> list
        {
            get { return _list; }
            set { _list = value; }
        }

        /// <summary>
        /// ID
        /// </summary>	
        public int TASKAPP_C1_AUTOID
        {
            get
            {
                TASKAPP_MAIN_AUTOID = _TASKAPP_C1_AUTOID;// 单据ID
                return _TASKAPP_C1_AUTOID;
            }
            set { _TASKAPP_C1_AUTOID = value; }
        }

        /// <summary>
        /// 调入存放地
        /// </summary>	
        public string strTASKAPP_C1_20
        {
            get { return _strTASKAPP_C1_20; }
            set { _strTASKAPP_C1_20 = value; }
        }


        /// <summary>
        /// 调出存放地
        /// </summary>	
        public string strTASKAPP_C1_10
        {
            get { return _strTASKAPP_C1_10; }
            set { _strTASKAPP_C1_10 = value; }
        }

        /// <summary>
        /// 调出存放地ID
        /// </summary>
        public int? TASKAPP_C1_10
        {
            get { return _TASKAPP_C1_10 == null ? 0 : _TASKAPP_C1_10; }
            set { _TASKAPP_C1_10 = value; }
        }
        /// <summary>
        /// 调入存放地ID
        /// </summary>
        public int? TASKAPP_C1_20
        {
            get { return _TASKAPP_C1_20 == null ? 0 : _TASKAPP_C1_20; }
            set { _TASKAPP_C1_20 = value; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string TASKAPP_C1_30
        {
            get { return _TASKAPP_C1_30; }
            set { _TASKAPP_C1_30 = value; }
        }
        /// <summary>
        /// 备用1
        /// </summary>
        public string TASKAPP_C1_40
        {
            get { return _TASKAPP_C1_40; }
            set { _TASKAPP_C1_40 = value; }
        }
        /// <summary>
        /// 备用2
        /// </summary>
        public string TASKAPP_C1_50
        {
            get { return _TASKAPP_C1_50; }
            set { _TASKAPP_C1_50 = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TASKAPP_C1_60
        {
            get { return _TASKAPP_C1_60; }
            set { _TASKAPP_C1_60 = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TASKAPP_C1_70
        {
            get { return _TASKAPP_C1_70; }
            set { _TASKAPP_C1_70 = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TASKAPP_C1_80
        {
            get { return _TASKAPP_C1_80; }
            set { _TASKAPP_C1_80 = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TASKAPP_C1_90
        {
            get { return _TASKAPP_C1_90; }
            set { _TASKAPP_C1_90 = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TASKAPP_C1_100
        {
            get { return _TASKAPP_C1_100; }
            set { _TASKAPP_C1_100 = value; }
        }


        /// <summary>
        /// Json转实体
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static Mstaskapp_c1 parse(Newtonsoft.Json.Linq.JObject data)
        {
            Mstaskapp_c1 ms = (Mstaskapp_c1)data.ToObject(typeof(Mstaskapp_c1));
            return ms;
        }


        /// <summary>
        /// 转为Json
        /// </summary>
        /// <returns></returns>
        public Newtonsoft.Json.Linq.JObject ToJObject()
        {
            return Newtonsoft.Json.Linq.JObject.FromObject(this);
        }
    }
}
